package com.company;

import org.apache.ibatis.plugin.Interceptor;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.client.RestTemplate;
import sun.nio.ch.ThreadPool;

import java.util.HashMap;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.SynchronousQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.lang.instrument.Instrumentation;

import static java.util.concurrent.Executors.newCachedThreadPool;
import static java.util.concurrent.Executors.newFixedThreadPool;

@SpringBootApplication
public class Application {

    //@Autowired
    //private RestTemplate restTemplate;

    public static void main(String[] args) {
//        System.out.println(123456);
//        ThreadLocal<Application> threadLocal = new ThreadLocal<>();
//        threadLocal.set(new Application());
//        Application application = threadLocal.get();

        //SqlSessionFactory
        //SqlSessionFactory
        //HashMap
        ExecutorService executorService = newFixedThreadPool(6);
        //executorService.execute();

        //ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(5,10,60L,);


        SpringApplication.run(Application.class, args);
    }

}

